package homework.work5;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String strNum = scanner.next();
        try {
            int num = Integer.parseInt(strNum);
            System.out.println("num = " + num);
        } catch (NumberFormatException e) {
            System.out.println("转换异常");
            throw new RuntimeException(e);

        }

    }
}
